﻿<%@ Page Language="C#" MasterPageFile="~/LTR/MlyLtrMaster.Master" AutoEventWireup="true"
    CodeBehind="advancedRptParams.aspx.cs" Inherits="MLY.Reports.advancedRptParams" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="titleHolder" runat="server">
    <script language="javascript" type="text/javascript">

        window.onload = function() {
            $("#advanced_reportsmenuitem").addClass('active');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table id="reportstable">
    <tr>
    <td class="SC_ReportTd" style="width:50%;">
        <div class="SC_ReportInner">
        <div id="office_tumb"  class="Sccover_floater SC_border_right SC_ReporttdInnerTumb">
        <div class="SC_ReportsTextBelowTumb">
            Office
        </div>    
        </div>
        <div class="Sccover_floater SC_Align">
            <ul class="SC_ReportUl">
                <li><asp:HyperLink ID="SystemErrorsReportLink" runat="server" Text='<%$Dict:reportsParams.ErrorsReport %>'
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=SystemErrors"  ></asp:HyperLink> </li>
                <li><asp:HyperLink ID="DispatchReportLink" runat="server" Text='<%$Dict:Report.DeliveryDispatch %>'
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=DeliveryDispatch"></asp:HyperLink></li>
                <li><asp:HyperLink ID="HyperLink2" runat="server" Text='<%$Dict:Reports.OpenMaterialReport %>'
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=OpenMaterial"></asp:HyperLink></li>
                <li><asp:HyperLink ID="HyperLink3" runat="server" Text='<%$Dict:Reports.FutureInventoryReport %>'
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=FutureInventory"></asp:HyperLink></li>
                <li><asp:HyperLink ID="YiedOTDLink" runat="server" Text='<%$ Dict:Report.OnTimeDelivery %>'
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=OTDYield"></asp:HyperLink></li>
                <li><asp:HyperLink ID="ExceptionsReportHyperlink" runat="server" 
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=ExceptionsProcessReport"></asp:HyperLink></li>                
                <li>&nbsp;</li>
            </ul>
        </div>
        </div>
    </td>
    <td class="SC_ReportTd" style="width:50%;">
        <div class="SC_ReportInner">
        <div id="inventory2_tumb"  class="Sccover_floater SC_border_right SC_ReporttdInnerTumb">
        <div class="SC_ReportsTextBelowTumb">
            Inventory transactions (Suppliers)
        </div>     
        </div>
        <div class="Sccover_floater SC_Align">
            <ul class="SC_ReportUl">
                <li><asp:HyperLink ID="DataFlowReportLink" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=StepTimeDeviation" 
                    Target="_blank" Text="<%$Dict:DataFlowReport.Title %>"></asp:HyperLink></li>
                <li><asp:HyperLink ID="ApprovedMaterialsReportHyperlink" runat="server" Text="<%$ Dict:advancedRptPrams.ApprovedMaterialsReport %>"
                    NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=ApprovedMaterials"></asp:HyperLink></li>
                <li>&nbsp;</li>
                <li>&nbsp;</li>
                <li>&nbsp;</li>
            </ul>
        </div>
        </div>
    </td>
    </tr>
    <tr>
    <td class="SC_ReportTd">
        <div class="SC_ReportInner">
        <div id="qc_tumb"  class="Sccover_floater SC_border_right SC_ReporttdInnerTumb">
        <div class="SC_ReportsTextBelowTumb">
            QC
        </div>    
        </div>
        <div class="Sccover_floater SC_Align">
            <ul class="SC_ReportUl">
                <li><asp:HyperLink ID="DisqualifyReasonLink" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=DisqualifyReasons"
                     Text="<%$ Dict:reportsParams.DisqualifyReasonsTitle %>"></asp:HyperLink></li>
                <li><asp:HyperLink ID="MaterialInQCLink" runat="server" Text="<%$ Dict:Report.MaterialInQC %>" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=MaterialInQC"></asp:HyperLink></li>
                <li><asp:HyperLink ID="TPTRawDataHyperlink" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=TPTRawData"></asp:HyperLink></li>
                
                <li>&nbsp;</li>
                <li>&nbsp;</li>
            </ul>
        </div>
        </div>
    </td>
    <td class="SC_ReportTd">
        <div class="SC_ReportInner">
        <div id="orders_tumb"  class="Sccover_floater SC_border_right SC_ReporttdInnerTumb">
        <div class="SC_ReportsTextBelowTumb">
            Orders
        </div>     
        </div>
        <div class="Sccover_floater SC_Align">
            <ul class="SC_ReportUl">
                <li><asp:HyperLink ID="BulkUpdateReportLink" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=BulkUpdate"
                     Text="<%$Dict:reportParams.BulkUpdate %>"></asp:HyperLink></li>
                <li>&nbsp;</li>
                <li>&nbsp;</li>
                <li>&nbsp;</li>
                <li>&nbsp;</li>
            </ul>
        </div>
        </div>        
    </td>
    </tr>
    <tr>
    <td colspan="2" class="SC_ReportTd">
        <div class="SC_ReportInner">
        <div id="inventory_tumb"  class="Sccover_floater SC_border_right SC_ReporttdInnerTumb">
        <div class="SC_ReportsTextBelowTumb">
            Inventory transactions (Clients)    
        </div>     
        </div>
        <div class="Sccover_floater SC_Align">
            <ul class="SC_ReportUl">
                <li><asp:HyperLink ID="EceptionsNoWithoutActualLink" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=OpenLinesWithoutMaterial"
                      Text="<%$Dict:reportsParams.ReportNoWithoutActual %>"></asp:HyperLink></li>
                <li><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=MissingParts"
                     Text="<%$Dict:Reports.MissingPartsReport %>"></asp:HyperLink></li>
                <li><asp:HyperLink ID="RowMaterialControlReport" runat="server" NavigateUrl="~/Reports/AdvReportsViewer.aspx?ReportName=RowMaterialControl"
                     Text="<%$Dict:Reports.RowMaterialInventoryControl %>"></asp:HyperLink></li>
                <li>&nbsp;</li>
                <li>&nbsp;</li>
            </ul>
        </div>
        
    </td>
    </tr>
    </table>
    
    <%--<div id="win-xp" style="">--%>
        <%--<table width="100%" cellpadding="0" class="advancedRepCls" cellspacing="0" border="0"
            style="font-size: 12px; color: #414042; height: auto; vertical-align: top;">
            <tr class="gridRow">
                <td colspan="4">
                    <asp:Label runat="server" Font-Bold="true" ForeColor="Red" ID="errLbl"></asp:Label>
                </td>
            </tr>
            <tr style="height: 100px; vertical-align: top;">
                <td>
                    <asp:Label ID="lblReports" Text='choose Report' runat="server"></asp:Label>
                </td>
                <td colspan="2">
                    <asp:DropDownList ID="ddlReports" runat="server" CssClass="filterDdl" OnSelectedIndexChanged="ddlReports_SelectedIndexChanged"
                        AutoPostBack="True" OnPreRender="ddlReports_PreRender">
                        <asp:ListItem Selected="True" Value="0" Text='<%$Dict:advancedRptPrams.chooseReport %>'></asp:ListItem>
                        <asp:ListItem Value="1" Text='<%$Dict:advancedRptPrams.OnTimeDeliveryReport %>'></asp:ListItem>
                        <asp:ListItem Value="2" Text='<%$Dict:advancedRptPrams.SelfRateByTags %>'></asp:ListItem>
                        <asp:ListItem Value="3" Text='<%$Dict:advancedRptPrams.AvarageProcessTime %>'></asp:ListItem>
                        <asp:ListItem Value="4" Text='<%$Dict:advancedRptPrams.GraphQuantitiesPerRelation %>'></asp:ListItem>
                        <asp:ListItem Value="5" Text='<%$Dict:advancedRptPrams.InventoryBalance %>'></asp:ListItem>
                        <asp:ListItem Value="6" Text='<%$Dict:advancedRptPrams.GraphInventoryBalance %>'></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr id="divCriteria" runat="server" style="height: 100px; vertical-align: top;">
                <td>
                    <asp:Label ID="lblFilterBy" runat="server" Text='<%$Dict:advancedRptPrams.ChooseFilter: %>'></asp:Label>
                </td>
                <td colspan="2">
                    <asp:DropDownList ID="ddlCriteria" CssClass="filterDdl" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="ddlCriteria_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="0" Text='<%$Dict:advancedRptPrams.chooseFilter %>'></asp:ListItem>
                        <asp:ListItem Text='SendDate' Value="1"></asp:ListItem>
                        <asp:ListItem Text='RequestedDelivaryDate' Value="2"></asp:ListItem>
                        <asp:ListItem Text='PlannedDelivaryDate' Value="3"></asp:ListItem>
                        <asp:ListItem Text='ActualDelivaryDate' Value="4"></asp:ListItem>
                        <asp:ListItem Text='CustomerPriority' Value="5"></asp:ListItem>
                        <asp:ListItem Text='Quantity' Value="6"></asp:ListItem>
                        <asp:ListItem Text='TotalSum' Value="7"></asp:ListItem>
                        <asp:ListItem Text='OrderNumber' Value="8"></asp:ListItem>
                        <asp:ListItem Text='TotalSum' Value="9"></asp:ListItem>
                        <asp:ListItem Text='CustomerCatalougeCode' Value="10"></asp:ListItem>
                        <asp:ListItem Text='ProductDescription' Value="11"></asp:ListItem>
                        <asp:ListItem Text='TextFieldA' Value="12"></asp:ListItem>
                        <asp:ListItem Text='TextFieldB' Value="13"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="divWoQuantitiesDateColumns" runat="server" style="height: 200px;" visible="false">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server" Text='<%$Dict:advancedRptPrams.ChooseFilter: %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList CssClass="filterDdl" ID="ddlWoByDateColumn" runat="server" AutoPostBack="True">
                                        <asp:ListItem Selected="True" Value="0" Text='<%$Dict:advancedRptPrams.chooseDateFilter: %>'></asp:ListItem>
                                        <asp:ListItem Text='SendDate' Value="1"></asp:ListItem>
                                        <asp:ListItem Text='RequestedDelivaryDate' Value="2"></asp:ListItem>
                                        <asp:ListItem Text='PlannedDelivaryDate' Value="3"></asp:ListItem>
                                        <asp:ListItem Text='ActualDelivaryDate' Value="4"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <asp:Button ID="btnSubmit" CssClass="smallBtn Btn" Text='<% $Dict:General.Submit %>'
                        runat="server" OnClick="btnSubmit_OnClick" />
                    <asp:Button ID="btnClose" CssClass="smallBtn Btn" Text='<% $Dict:General.Close %>'
                        runat="server" OnClick="btnClose_OnClick" />
                    <br />
                </td>
                <td>
                </td>
                <td>
                    <div id="divCriteriaFill" runat="server" visible="false">
                        <div id="divDates" runat="server" visible="false">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblBetween" runat="server" Text='<%$Dict:advancedRptPrams.Between %>'></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDateStart" CssClass="blueBorder" runat="server"></asp:TextBox>
                                        <KBMControls:KbmCalendar ID="CalendarExtender1" runat="server" TargetControlID="txtDateStart">
                                        </KBMControls:KbmCalendar>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Label ID="lblAnd" runat="server" Text='<%$Dict:advancedRptPrams.And %>'></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox CssClass="blueBorder" ID="txtDateEnd" runat="server"></asp:TextBox>
                                        <KBMControls:KbmCalendar ID="CalendarExtender2" runat="server" TargetControlID="txtDateEnd">
                                        </KBMControls:KbmCalendar>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="divExpression" runat="server" visible="false">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblLike" runat="server" Text='<%$Dict:advancedRptPrams.Like %>'></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtLike" CssClass="blueBorder" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div id="divNumericValues" runat="server" visible="false">
                            <table cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td>
                                        <asp:DropDownList CssClass="filterDdl" ID="ddlExpr" runat="server" AutoPostBack="True">
                                            <asp:ListItem Selected="True" Value="0" Text='<%$Dict:advancedRptPrams.chooseAction %>'></asp:ListItem>
                                            <asp:ListItem Value="1" Text='='></asp:ListItem>
                                            <asp:ListItem Value="2" Text=''>=' ></asp:ListItem>
                                            <asp:ListItem Value="3" Text='>'></asp:ListItem>
                                            <asp:ListItem Value="4" Text='<='></asp:ListItem>
                                            <asp:ListItem Value="5" Text='<'></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtValue" CssClass="blueBorder" runat="server"></asp:TextBox>
                                        <KBMValidators:numericValidator ID="numericValidator1" runat="server" ControlToValidate="txtValue"></KBMValidators:numericValidator>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div id="divOTD" runat="server" style="height: 200px;" visible="false">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td>
                                    <asp:Label ID="lblOrg" Text='<%$Dict:advancedRptPrams.ChooseOrganization: %>' runat="server"></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlOrgs" CssClass="filterDdl" runat="server" DataTextField="OrganizationName"
                                        DataValueField="OrganizationId"
                                        AutoPostBack="False">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text='<%$Dict:advancedRptPrams.ChooseFilter: %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDateCriteriaField" CssClass="filterDdl" runat="server" AutoPostBack="False">
                                        <asp:ListItem Selected="True" Value="0" Text='<%$Dict:advancedRptPrams.chooseDateFilter: %>'></asp:ListItem>
                                        <asp:ListItem Text='SendDate' Value="1"></asp:ListItem>
                                        <asp:ListItem Text='RequestedDelivaryDate' Value="2"></asp:ListItem>
                                        <asp:ListItem Text='PlannedDelivaryDate' Value="3"></asp:ListItem>
                                        <asp:ListItem Text='ActualDelivaryDate' Value="4"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label3" runat="server" Text='<%$Dict:advancedRptPrams.Between %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOTDDateStart" CssClass="blueBorder" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" Text='<%$Dict:advancedRptPrams.And %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOTDDateEnd" runat="server" CssClass="blueBorder"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                    <asp:Label ID="lblErr" runat="server" Visible="False" Text='<%$ Dict:advancedRptPrams.CannotShowThisReportToAnOrganizationThatIsAContractorAndAClientAsWell.MustChooseRoleMenu %>'
                        ForeColor="#FF3300"></asp:Label>
                </td>
            </tr>
        </table>--%>
        <%--<br /><br />--%>
        <%--<asp:HyperLink ID="ExceptionsReportHyperlink" runat="server" Target="_blank"
         NavigateUrl="~/LTR/ExceptionsProcessReport.aspx" CssClass="floater regFont"></asp:HyperLink>--%>
         
        <%--<br /><br />--%>
        <%--<asp:HyperLink ID="ApprovedMaterialsReportHyperlink" runat="server" Target="_blank"
         NavigateUrl="~/LTR/ApprovedMaterialsInProcess.aspx" CssClass="floater regFont"></asp:HyperLink>--%>
         
         <%--<br /><br />--%>
        <%--<asp:HyperLink ID="TPTRawDataHyperlink" runat="server" NavigateUrl="~/LTR/TPTRawDataView.aspx"
         Target="_blank" CssClass="floater regFont"></asp:HyperLink>--%>
         
         <%--<br /><br />--%>
        <%--<asp:HyperLink ID="DataFlowReportLink" runat="server" NavigateUrl="~/Reports/ChartReports/DataFlowReport_Special.aspx"
         Target="_blank" CssClass="floater regFont" Text="<%$Dict:DataFlowReport.Title %>"></asp:HyperLink>--%>          
         
          <%--<br /><br />--%>
        <%--<asp:HyperLink ID="EceptionsNoWithoutActualLink" runat="server" NavigateUrl="~/Reports/DataReports/ExceptionsReportNoWithoutActual.aspx"
         Target="_blank" CssClass="floater regFont" Text="<%$Dict:reportsParams.ReportNoWithoutActual %>"></asp:HyperLink>--%> 
         
    <%--</div>--%>
    <%--<table>
        <tr>
            <td>
                <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                </CR:CrystalReportSource>
                <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
            </td>
        </tr>
    </table>
    
    <KBMControls:KbmCalendar ID="CalendarExtender3" runat="server" TargetControlID="txtOTDDateStart">
    </KBMControls:KbmCalendar>
    <KBMControls:KbmCalendar ID="CalendarExtender4" runat="server" TargetControlID="txtOTDDateEnd">
    </KBMControls:KbmCalendar>--%>
</asp:Content>
